import type { COURSE_MENU_TYPE } from '@/enums/course';
import type { Component } from 'vue';

export interface ICourseMenu {
  id: number | string;
  key: string;
  label: string;
  type: number;
  children?: ICourseMenu[];
  [properName: string]: any;
}

export interface ICourseContent {
  content: string;
}

export interface ICourseComponent {
  component: Component;
  props: Record<string, any>;
  [propertyName: string]: any;
}

export interface ICourseQuestions {
  id: number | string;
  question: string;
  options: string;
  answer: string;
  explanation: string;
  question_type: number;
  question_class: number;
  question_source: number;
}

export type TCourseContentComponent = Record<COURSE_MENU_TYPE, ICourseComponent>;
